/*
 * Nabój
 */
#include "Bullet.h"

Bullet::Bullet(BITMAP* bmp, int dir, int x_start, int y_start) : ATile(bmp)
{
	direction = dir;
	x = x_start;
	y = y_start;

	xSpeed = 4;
	ySpeed = 4;
}

void Bullet::move()
{
	switch (direction)
	{
		case Direction::NORTH:
			y -= ySpeed;
			break;
		case Direction::EAST:
			x += xSpeed;
			break;
		case Direction::SOUTH:
			y += ySpeed;
			break;
		case Direction::WEST:
			x -= xSpeed;
			break;
	}
}

Bullet::~Bullet()
{
}
